package com.ctshk.rpc.scenic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.scenic.entity.ScenicProductCostStrategy;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 门票成本策略 Mapper 接口
 * </p>
 *
 * @author wangcy
 * @since 2021-02-02
 */
public interface ScenicProductCostStrategyMapper extends BaseMapper<ScenicProductCostStrategy> {

    /**
     * 批量删除
     * @param productId
     * @param
     * @return
     */
    @Update("UPDATE t_scenic_product_cost_strategy\n" +
            "WHERE   product_id = #{product_id}")
    Integer batchDel(@Param("product_id") Long productId);

}
